<template>
    <div>
        son2--{{counterStore.counter}}
        <button @click="counterStore.subCount">-</button>
    </div>
</template>
<script setup>
import {useCounterStore} from "@/store/counter"
const counterStore = useCounterStore()
</script>
